package com.mindata.blockchain.block;

/**
 * blockBody内一条指令的基础属性
 * @author wuweifeng wrote on 2018/4/4.
 */
public class InstructionBase {
	private byte operation; // 指令的操作，增删改(1,-1,2)
	private String table; // 操作的表名
	private String oldJson; // 最终要执行入库的json内容
	private String instructionId; // 业务id，sql语句中where需要该Id

	public byte getOperation() {
		return operation;
	}

	public void setOperation(byte operation) {
		this.operation = operation;
	}

	public String getTable() {
		return table;
	}

	public void setTable(String table) {
		this.table = table;
	}

	public String getOldJson() {
		return oldJson;
	}

	public void setOldJson(String oldJson) {
		this.oldJson = oldJson;
	}

	public String getInstructionId() {
		return instructionId;
	}

	public void setInstructionId(String instructionId) {
		this.instructionId = instructionId;
	}

	@Override
	public String toString() {
		return "InstructionReverse{" + "operation=" + operation + ", table='" + table + '\'' + ", oldJson='" + oldJson
				+ '\'' + ", instructionId='" + instructionId + '\'' + '}';
	}
}
